package spring_annotation.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Repository;
import spring_annotation.service.BookService;

@Configuration
@ComponentScan(value = "spring_annotation", includeFilters = {
//        @Filter(type = FilterType.ANNOTATION, classes = {Repository.class}),
//        @Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {BookService.class}),
        @Filter(type = FilterType.CUSTOM, classes = {MyTypeFilter.class}),
}, useDefaultFilters = false)
public class FilterTypeConfig {

}
